package com.zq.app.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.springframework.stereotype.Component;

/**
 * 雇员
* @ClassName: Employee 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author 强哥 
* @date 2018年1月11日 下午6:40:21 
*
 */
@Entity
public class Employee {
	@Override
	public String toString() {
		return "Employee [id=" + id + ", name=" + name + ", age=" + age + "]";
	}
	@Id
	@GeneratedValue//自增
	private Integer id;
	@Column(length=20,nullable=false)
	private String name;
	private Integer age;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	
}
